package cn.slt.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


import cn.slt.domian.MD_libraryDSID;
import cn.slt.mapper.MD_libraryDSIDMapper;
import cn.slt.service.MD_libraryDSIDService;
@Service
@Transactional
public class MD_libraryDSIDServiceImpl implements MD_libraryDSIDService{
	@Autowired
	private MD_libraryDSIDMapper mapper;
	public boolean addBatch(List<MD_libraryDSID> list) {
		return mapper.addBatch(list);
	}
	public boolean updatelib(MD_libraryDSID obj){
		return mapper.updatelib(obj);
	}
	public String getmdcode(String owner){
		return mapper.getmdcode(owner);
	}
	public List<MD_libraryDSID> getall(String owner)
	{
		return mapper.getall(owner);
	}
	public MD_libraryDSID gettemp(Map<String, String> map){
		return mapper.gettemp(map);
	}
	public Integer getdscode(Map<String, String> map){
		return mapper.getdscode(map);
	}
	@Override
	public boolean deleteLib(String location,String dsName) {
		// TODO Auto-generated method stub
		Map<String, String>map=new HashMap<String, String>();
		map.put("location", location);
		map.put("dsName", dsName);
		return mapper.deleteLib(map);
	}
}
